package cn.xiaopengstack.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;

/**
 * @author jiangyangang
 */
@Data
@ConfigurationProperties
public class SpringAiProperties {

    @Value("${spring.ai.ollama.base-url}")
    private String baseUrl;

    @Value("${spring.ai.ollama.embedding.options.num-batch}")
    private String embeddingOptionsNumBatch;

    @Value("${spring.ai.ollama.embedding.model}")
    private String embeddingOptionsModel;

    @Value("${spring.ai.ollama.embedding.dimensions}")
    private Integer embeddingDimensions;

    @Value("${spring.ai.postgres.table-name}")
    private String postgresTableName;
}
